﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ecreate.Model
{
    [Serializable]
    public class Product
    {
        private int pid;

        private string pname = String.Empty;
        private string pimageurl = String.Empty;
        private string classid = String.Empty;
        private string pdescription = String.Empty;
        private decimal price;
        private string ishot = String.Empty;
        private string issale = String.Empty;
        private string isdown = String.Empty;

        // Instantiate empty Product for inserting
        public Product() { }

        // Retrieve Product with Id for updating
        public Product(int pid)
        {
            this.pid = pid;
        }

        #region Public Properties

        public int Pid
        {
            get { return pid; }
            set { pid = value; }
        }


        public string Pname
        {
            get { return pname; }
            set { pname = value; }
        }

        public string Pimageurl
        {
            get { return pimageurl; }
            set { pimageurl = value; }
        }

        public string Classid
        {
            get { return classid; }
            set { classid = value; }
        }

        public string Pdescription
        {
            get { return pdescription; }
            set { pdescription = value; }
        }

        public decimal Price
        {
            get { return price; }
            set { price = value; }
        }

        public string IsHot
        {
            get { return ishot; }
            set { ishot = value; }
        }

        public string IsSale
        {
            get { return issale; }
            set { issale = value; }
        }

        public string IsDown
        {
            get { return isdown; }
            set { isdown = value; }
        }
        #endregion
    }

	

}
